import {request} from "./request";
//发表留言
export function leaveWord(data) {
    return request({
        url:"/comment/a",
        method:'post',
        data:data
    })
}

//回复消息
export function toReplay(data) {
    return request({
        url:"/comment/b",
        method:'post',
        data:data
    })
}
//获取留言内容
export function getComm() {
    return request({
        url:'/comment/getComm',
        method:'get'
    })

}
//点赞
export function starN(data) {
    return request({
        url:'/comment/star',
        method:'post',
        data:data
    })
}